package com.iwomy.secureplat.platform.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 报警记录表
 *
 * @author pig
 * @date 2023-11-21 15:08:54
 */
@Data
public class AlarmLoggingVO {

	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "ID")
	private Long id;

	/**
	 * 设备ID
	 */
	@Schema(description = "设备ID")
	private Long deviceId;

	/**
	 * IMEI
	 */
	@Schema(description = "IMEI")
	private String imei;

	/**
	 * 设备类型
	 */
	@Schema(description = "设备类型")
	private String deviceTypeName;

	/**
	 * 设备型号
	 */
	@Schema(description = "设备型号")
	private String deviceModelName;

	/**
	 * 安装地点
	 */
	@Schema(description = "安装地点")
	private String installAddress;

	/**
	 * 工单类型（事件类型）
	 */
	@Schema(description = "工单类型（事件类型）")
	private Long eventTypeId;
	/**
	 * 工单类型（事件类型）
	 */
	@Schema(description = "工单类型（事件类型）")
	private String eventTypeName;

	/**
	 * 报警原因
	 */
	@Schema(description = "报警原因")
	private String alarmCauses;

	/**
	 * 报警确认类型 10误报 20 演练 30 报警 40 其他
	 */
	@Schema(description = "报警确认类型 10误报 20 演练 30 报警 40 其他")
	private Integer confirmState;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remarks;

	/**
	 * 排序
	 */
	@Schema(description = "排序")
	private Integer sort;

	/**
	 * 状态 10 已处理  20 未处理
	 */
	@Schema(description = "状态 10 已处理  20 未处理")
	private Integer state;

	/**
	 * 创建人
	 */
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改人
	 */
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	private LocalDateTime updateTime;

	/**
	 * 短信报警ID
	 */
	@Schema(description = "短信报警ID")
	private Long smsAlarmId;

	/**
	 * 公众号报警ID
	 */
	@Schema(description = "公众号报警ID")
	private Long officialAccountAlarmId;

	/**
	 * 电话报警ID
	 */
	@Schema(description = "电话报警ID")
	private Long telephoneAlarmId;

	/**
	 * 短信报警简述
	 */
	@Schema(description = "短信报警简述")
	private String smsAlarmSketch;

	/**
	 * 公众号报警简述
	 */
	@Schema(description = "公众号报警简述")
	private String officialAccountAlarmSketch;

	/**
	 * 电话报警简述
	 */
	@Schema(description = "电话报警简述")
	private String telephoneAlarmSketch;
	/**
	 * 详细地址
	 */
	@Schema(description = "详细地址")
	private String detailAddress;
	/**
	 * 今日报警数量
	 */
	@Schema(description = "今日报警数量")
	private Long todayAlarmNum;
	/**
	 * 今日报警已处理数量
	 */
	@Schema(description = "今日报警已处理数量")
	private Long todayAlarmHandledNum;
	/**
	 * 今日报警已处理百分比
	 */
	@Schema(description = "今日报警已处理百分比")
	private String todayAlarmHandledPer;

	/**
	 * 单位id
	 */
	@Schema(description = "单位id")
	private Long deptId;

	/**
	 * 单位名称
	 */
	@Schema(description = "单位名称")
	private String deptName;

	/**
	 * 事件等级
	 */
	@Schema(description = "事件等级")
	private Integer processTypeLevel;
	/**
	 * 处理类型名称
	 */
	@Schema(description = "处理类型名称")
	private String processTypeName;

	/**
	 * 处理时间
	 */
	@Schema(description = "处理时间")
	private LocalDateTime processingTime;
	/**
	 * 报警时间，时间戳
	 */
	@Schema(description = "报警时间，时间戳")
	private Long createTime2Long;

	/**
	 * 安装点位
	 */
	@Schema(description = "安装点位")
	private Long installLocationId;

	private String installLocationDetailAddress;
	private BigDecimal longitude;
	private BigDecimal latitude;
	private String name;
	private String phone;
	private String address;


}